package com.itheima.service;

import com.itheima.VO.OrderSettingVO;
import com.itheima.pojo.OrderSetting;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface OrdersettingService {


    /**
     * 预约设置模板下载
     * @param response
     * @param filename
     */
    void download(HttpServletResponse response,String filename);

    /**
     * 预约设置--根据预约日期修改预约人数
     * @param orderSetting
     */
    int editNumberByOrderDate(OrderSetting OrderSetting);

    /**
     * 预约设置--根据年月查询预约信息
     * @param month
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(String month);

    /**
     * 预约设置--批量导入
     * @param file
     * @return
     */
    int uploadFromExcel(MultipartFile file);

    //今日预约人数
    Integer todayOrderNumber(LocalDate reportDate);

    //本周预约人数
    Integer thisWeekOrderNumber(LocalDate reportDate);
    //本月预约人数
    Integer thisMonthOrderNumber(LocalDate reportDate);
    //热门套餐
    List<Map<String, Object>> getHotSetmeal();



    //导出运营数据
    void exportBusinessData(HttpServletResponse response);
}
